import { ApiCall } from "tsrpc";
import { ReqNewbieTask, ResNewbieTask } from "../../../shared/master/task/PtlNewbieTask";
import { player } from "../../../model/fight/body/player";
import { template } from "../../../shared/master/MsgAction";

export default async function (call: ApiCall<ReqNewbieTask, ResNewbieTask>) {
    let user = call.req._player as player;
    if(user.get_newbieTask()){
        user.get_newbieTask()?.look(user);
    }else{
        user.sendMsg(template.default,'你已经完成了新手任务.')
    }
   
    call.succ({})
}